SHLIBDIR?=	/lib

.include <src.opts.mk>

PACKAGE=	runtime

SHLIB_MAJOR=	2
INCSDIR?=	${INCLUDEDIR}/casper

.if ${MK_CASPER} != "no"
SHLIB=	cap_sysctl

SRCS=	cap_sysctl.c
.endif

INCS=	cap_sysctl.h

LIBADD=	nv

CFLAGS+=-I${.CURDIR}

HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests

MAN+=	cap_sysctl.3
MLINKS+=cap_sysctl.3 libcap_sysctl.3 \
	cap_sysctl.3 cap_sysctlbyname.3 \
	cap_sysctl.3 cap_nametomib.3 \
	cap_sysctl.3 cap_sysctl_limit_init.3 \
	cap_sysctl.3 cap_sysctl_limit_mib.3 \
	cap_sysctl.3 cap_sysctl_limit_name.3 \
	cap_sysctl.3 cap_sysctl_limit.3

.include <bsd.lib.mk>
